package com.victor.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 行程分类
 * 
 * @author zhangbin
 *
 */

@Entity
@Table(name = "xc_class")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class XcClass {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "xc_classid", unique = true, nullable = false, length = 11)
	private Integer xc_classid;// 行程分类id

	@Column(name = "class_name", length = 50)
	private String class_name;// 分类名

	@Column(name = "u_id", length = 50)
	private String u_id;// 用户id

	@Column(name = "plan_expend", length = 50)
	private String plan_expend;// 行程预算 --计划花费

	@Transient
	private String xc_startdate;// 行程分类中最早时间日期

	@Transient
	private String xc_enddate;// 行程分类中最晚时间日期

}
